CRPEJob::GetNthGroupSortField

Use CRPEJob::GetNthGroupSortField to determine the name of the group sort field and the sort direction (ascending or descending). This method is typically used as one of a series of calls (CRPEJob::GetNGroupSortFields, called once; CRPEJob::GetNthGroupSortField, called as many times as needed to identify the correct group sort field; and CRPEJob::SetNthGroupSortField, called once when the correct group sort field is identified). This series of methods can be used to identify and then change an existing group sort field and/or sort order in response to a user selection at print time.

Syntax
BOOL GetNthGroupSortField (
        short sortFieldN,
        CString &field,
        short *direction );
Parameters

sortFieldN

Specifies the number of the group sort field that you want to retrieve. The first group sort field is field 0. If the report has N sort fields, the method can be called with sortFieldN between 0 and N-1.

field

Reference to the CString object containing the name of the group sort field.

direction

Specifies a pointer to the value indicating the sort direction. Uses one of the PEP_SF_XXX Sort Order Constants.

Returns


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com